﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace Simbo.Crawler
{
    class Program
    {
        static void Main(string[] args)
        {
            Parallel.For(1, 4500, i =>
            {
                try
                {
                    var webclient = new WebClient();
                    webclient.DownloadFile(
                        new Uri(String.Format("http://thenounproject.com/download/zipped/svg_{0}.zip", i)),
                        String.Format("c:\\temp\\noun\\{0}.zip", i.ToString())
                    );
                    Console.WriteLine(i.ToString());
                }
                catch (Exception exc)
                {
                    Console.WriteLine(i.ToString() + "!");
                }
            });
        }
    }
}
